package com.example.design.decorator.coffeeebar.concretecomponent;

import com.example.design.decorator.coffeeebar.component.Drink;

/**
 * @Description 咖啡类
 * @ClassName Coffee
 * @Author Administrator
 * @Date 2020/5/13 18:01
 * @Version 1.0.0
 */
public class Coffee extends Drink {
    @Override
    public float cost() {
        //在实现是直接返回价格即可，因为单品就单品一个，实现简单
        return super.getPrice();
    }
}
